import { Module } from '@nestjs/common';
import { UseDbService } from './use-db.service';
import { UseDbController } from './use-db.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UseDb } from './entities/use-db.entity';
import { IdCard } from './entities/id_card.entity';

@Module({
  imports: [TypeOrmModule.forFeature([UseDb, IdCard])],
  controllers: [UseDbController],
  providers: [UseDbService],
  exports: [UseDbService], // 可选：如果其他模块需要使用这个服务，可以导出
})
export class UseDbModule {}
